#pragma once
#include "net_tcp/server.h"
#include "net_tcp/session.h"
#include "defines.h"

class tcp_server :  public net_tcp::server,public session_callback
{
protected:
	void on_connected(net_tcp::shared_session pSession) override;
	void on_recv(net_tcp::shared_session pSession) override;
	void on_closeed(net_tcp::shared_session pSession) override;
	void on_error(net_tcp::shared_session pSession) override;
public:
	tcp_server(asio::io_service& iosev, unsigned int port);
};

